<?php
namespace Admin\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Admin\Model\Usergroup;
class UserGroupController extends AbstractActionController
{
    public function indexAction()
    {
    	$userTable = $this->getServiceLocator()->get('Admin\Model\UserGroupTable');
        return new ViewModel(array(
            'usergroups' => $userTable->fetchAll()
        ));
    }
    
    public function addAction ()
    {
    	$user = new Usergroup();
    	$view = new ViewModel(array(
    			'website' => $user->getTable(),
    	));
    	return $view;
    }
}

